package com.itheima.edu.info.manager.factory;

import com.itheima.edu.info.manager.dao.BaseStudentDao;
import com.itheima.edu.info.manager.dao.BaseTeacherDao;
import com.itheima.edu.info.manager.dao.OtherStudentDao;
import com.itheima.edu.info.manager.dao.OtherTeacherDao;

public class Factory {

    /**
     * 生产学生Dao对象
     * @return
     */
    public static BaseStudentDao getStudentDao(){

        return  new OtherStudentDao();
    }

    /**
     * 生产老师Dao对象
     * @return
     */
    public static BaseTeacherDao getTeacherDao(){

        return  new OtherTeacherDao();
    }

}
